package com.ruoyi.common.ofbiz;

import org.apache.ofbiz.base.start.StartOfbizForJar;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class OfbizRunner implements CommandLineRunner {

    @Override
    public void run(String... args) {
        System.out.println("Initializing the OFBiz framework ...");
        StartOfbizForJar.main(args);
        System.out.println("Initialization of OFBiz framework succeeded");
    }
}
